﻿using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using Tp.Dto;
using Tp.Interfaces;
using Tp.Interfaces.Commands;

namespace Tp.GeschaeftsfaelleViewModel
{
	public class GeschaeftsfaelleViewModelCommands : IGeschaeftsfaelleViewModelCommands
    {
        #region Fields
		public RelayCommand<EmployeeDto> ShowDialogCommand { get; set; }
        #endregion

        #region Properties
        #endregion

        #region C-Tor
        public GeschaeftsfaelleViewModelCommands()
        {
            this.RegisterCommands(); 	
        }
		#endregion

		#region Private methods
        private void RegisterCommands()
        {
			this.ShowDialogCommand = new RelayCommand<EmployeeDto>(ExecuteShowDialog);
        }

		private void ExecuteShowDialog(EmployeeDto selectedEmployee)
		{
			Messenger.Default.Send(selectedEmployee);
		}
		#endregion
	}
}
